
cc.Class({
    extends: cc.Component,
    properties: {

    },
    // LIFE-CYCLE CALLBACKS:
    // onLoad () {},
    start () {
        this.popStart = false
        this.node.scale = 0
    },
    fade(){
        this.node.runAction(cc.scaleTo(1,0,0).easing(cc.easeExponentialOut()))
    },
    update (dt) {
        if(this.node.parent){
            if(this.node.parent.rotation==0 && !this.popStart){
                this.popStart = true
                this.node.runAction(cc.scaleTo(1,1,1).easing(cc.easeExponentialOut()))
            }
        }
    },
});
